import Vue from 'vue'

Vue.mixin({
    methods: {
        hasAuth(perm) {
            const authority = this.$store.state.menus.permList;
            return authority.indexOf(perm) !== -1
        }
    }
});